

GRKZ.extend({
/**
 * 兼容旧的
 * @param {Object} deep
 */
	noConflict : function(deep) {
		window.$ = _$;

		if (deep)
			window.GRKZ = _GRKZ;

		return GRKZ;
	},
	
	isFunction : function(fn) {
			return fn instanceof Function;
	},

		// 判断是不是XMLDoc
	isXMLDoc : function(elem) {
			return elem.documentElement && !elem.body || elem.tagName
					&& elem.ownerDocument && !elem.ownerDocument.body;
	},
	
/**
 * 列遍对象
 * @param {Object} callback
 */
	map:function(callback) {
		return this.pushStack( GRKZ.map(this, function(elem, i){
			return callback.call( elem, i, elem );
		}));
	},

/**
 * 把参数array转换成数组
 * @param {Object} array
 */
	makeArray : function(array) {
			var ret = [];

			if (array != null) {
				var i = array.length;
				// the window, strings and functions also have 'length'
				if (i == null || array.split || array.setInterval || array.call)
					ret[0] = array;
				else
					while (i)
						ret[--i] = array[i];
			}

			return ret;
	}
	
 	
});
	